package com.paper.service;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.TablePage;
import com.paper.entity.Paper;
import com.paper.entity.dto.PaperTableDTO;

public interface IPaperService {
	public TablePage<PaperTableDTO> findPage(Specification<Paper> spec,Pageable pageable);
	public void delete(Long id);
	public void save(Paper paper,HttpSession session);
	public List<Paper> findAll();
	public Paper findOne(Long id);
	public boolean isUsing(Long id);
	public boolean isUsingAndExaming(Long id);
	public List<Paper> findListBycourse(Long id);
}
